package com.cq.hd.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cq.hd.order.api.vo.MonthSettleBillVo;
import com.cq.hd.order.mapper.TbMonthSettleBillWithdrawalMapper;
import com.cq.hd.order.po.TbMonthSettleBillWithdrawalPo;
import com.cq.hd.order.service.TbMonthSettleBillWithdrawalService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
 * @author much
 * @since 2024/04/20 06:53
 */
@Service
public class TbMonthSettleBillWithdrawalServiceImpl extends ServiceImpl<TbMonthSettleBillWithdrawalMapper, TbMonthSettleBillWithdrawalPo>
        implements TbMonthSettleBillWithdrawalService {

    @Resource
    private TbMonthSettleBillWithdrawalMapper monthSettleBillWithdrawalMapper;

    @Override
    public List<MonthSettleBillVo> listMonthSettleBillByWithdrawalId(Long withdrawalBillId) {
        if (withdrawalBillId == null) {
            return Collections.emptyList();
        }
        List<MonthSettleBillVo> monthSettleBillVos = monthSettleBillWithdrawalMapper.selectMonthSettleBillByWithdrawalId(withdrawalBillId);
        return monthSettleBillVos;
    }

}
